package com.mach.platform.sprider;

import com.mach.platform.sprider.getter.DataLogService;
import com.mach.platform.util.SqlHelper;

public class Conf {
    public static boolean isFliterData = false;
    public static boolean isUseExtDb = false;

    public static SqlHelper getSqlHelper(){
//        return SqlHelper.getBySource(SqlHelper.getRenaultDataSource());
        return SqlHelper.getBySource(SqlHelper.getNissanDataSource());
    }

    public static DataLogService getMongoDbHelper(){
       return null;
//       return NissanDataLogService.get(MongoDbJdbc.get());
    }


    public static SqlHelper getSqlHelperExt() {
        if(!isUseExtDb){
            return null;
        }
        return SqlHelper.getBySource(SqlHelper.getExtDataSource());
    }
}
